package wlf.pojo;

import java.util.List;

import com.fasterxml.jackson.databind.ObjectMapper;

public class ShowTable {
	private int id;
	private int sid;
	private List<TableField> fields;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getSid() {
		return sid;
	}
	public void setSid(int sid) {
		this.sid = sid;
	}
	public List<TableField> getFields() {
		return fields;
	}
	public void setFields(List<TableField> fields) {
		this.fields = fields;
	}
	@Override
	public String toString() {
		String json = "[";
		for(int i = 0;i<fields.size();i++){
			json+=fields.get(i).getField();
			if(i!=fields.size()-1){
				json+=",";
			}
		}
		json+="]";
		return json;
	}
	
	
	
}
